.class public final Lkairo/android/ui/x;
.super Lkairo/android/ui/w;

# interfaces
.implements Landroid/media/MediaPlayer$OnCompletionListener;


# instance fields
.field private g:I


# direct methods
.method private constructor <init>(Landroid/media/JetPlayer;)V
    .locals 2

    const/4 v1, 0x0

    const/4 v0, 0x1

    invoke-direct {p0, p1, v0, v1}, Lkairo/android/ui/w;-><init>(Ljava/lang/Object;II)V

    iput v1, p0, Lkairo/android/ui/x;->g:I

    return-void
.end method

.method public static b(Ljava/lang/String;)Lkairo/android/ui/x;
    .locals 3

    invoke-static {p0}, Lkairo/android/ui/s;->b(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u30ea\u30bd\u30fc\u30b9\u3010"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\u3011\u304b\u3089ID\u3078\u306e\u5909\u63db\u306b\u5931\u8d25\u3057\u307e\u3057\u305f\u3002"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lkairo/android/i/i;->b(Ljava/lang/String;)Ljava/lang/String;

    :cond_0
    invoke-static {}, Landroid/media/JetPlayer;->getJetPlayer()Landroid/media/JetPlayer;

    move-result-object v1

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v2

    invoke-virtual {v2}, Lkairo/android/ui/IApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/res/Resources;->openRawResourceFd(I)Landroid/content/res/AssetFileDescriptor;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/media/JetPlayer;->loadJetFile(Landroid/content/res/AssetFileDescriptor;)Z

    new-instance v0, Lkairo/android/ui/x;

    invoke-direct {v0, v1}, Lkairo/android/ui/x;-><init>(Landroid/media/JetPlayer;)V

    return-object v0
.end method


# virtual methods
.method public final a()V
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/x;->c:Ljava/lang/Object;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/x;->c:Ljava/lang/Object;

    check-cast v0, Landroid/media/JetPlayer;

    invoke-virtual {v0}, Landroid/media/JetPlayer;->clearQueue()Z

    :cond_0
    const/4 v0, 0x3

    iput v0, p0, Lkairo/android/ui/x;->g:I

    return-void
.end method

.method public final a(IZ)V
    .locals 7

    const/4 v1, 0x0

    invoke-virtual {p0}, Lkairo/android/ui/x;->a()V

    iget v0, p0, Lkairo/android/ui/x;->d:I

    const/4 v2, 0x1

    if-ne v0, v2, :cond_0

    if-eqz p2, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/x;->c:Ljava/lang/Object;

    check-cast v0, Landroid/media/JetPlayer;

    const/4 v2, 0x2

    iput v2, p0, Lkairo/android/ui/x;->g:I

    const/4 v2, -0x1

    move v3, v1

    move v4, v1

    move v5, v1

    move v6, v1

    invoke-virtual/range {v0 .. v6}, Landroid/media/JetPlayer;->queueJetSegment(IIIIIB)Z

    invoke-virtual {v0}, Landroid/media/JetPlayer;->play()Z

    goto :goto_0
.end method

.method public final b()V
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/x;->c:Ljava/lang/Object;

    check-cast v0, Landroid/media/JetPlayer;

    invoke-virtual {v0}, Landroid/media/JetPlayer;->clearQueue()Z

    invoke-virtual {v0}, Landroid/media/JetPlayer;->closeJetFile()Z

    invoke-super {p0}, Lkairo/android/ui/w;->b()V

    return-void
.end method

.method public final b(IZ)V
    .locals 0

    return-void
.end method

.method public final c()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/x;->g:I

    return v0
.end method

.method public final onCompletion(Landroid/media/MediaPlayer;)V
    .locals 0

    return-void
.end method
